import {createRouter, createWebHashHistory} from 'vue-router'
import Splash from '../views/Splash.vue'
import DashBoard from "@/views/DashBoard";

const routes = [
    {
        path: '/home',
        name: 'Home',
        component: DashBoard
    },
    {
        path: '/',
        name: 'Splash',
        component: Splash
    },


    {
        path: '/export',
        name: 'export',
        //懒加载
        component: () => import(/* webpackChunkName: "about" */ '../views/Export.vue')
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
